package office.action.hr.form;

public class PurchaseEntryForm {

	private String id;
	private double price;		//单价
	private int purchaseNumber;			//购买数量
	private String officesuppliesId;
	private String officesuppliesName;
	private String entryUserId;		//提交人id
	private String entryUserName;	//提交人名字
	private String entryRole;		//提交人角色
	private String checkRole;		//审批人角色
	private String entryDate;
	private String state;
	private String stateName;
	private String deptId;					//部门id
	private String companyId;
	
	public PurchaseEntryForm(){
		
	}
	public PurchaseEntryForm(String id,String officesuppliesName,String officesuppliesId,double price,int purchaseNumber,String state,String entryDate){
		this.id = id;
		this.officesuppliesName=officesuppliesName;
		this.officesuppliesId = officesuppliesId;
		this.price = price;
		this.purchaseNumber = purchaseNumber;
		this.state = state;
		this.entryDate = entryDate;
		if(null!=state && !("").equals(state)){
			if(state.equals("-1")){
				this.stateName = "审批驳回";
			}else if(state.equals("0")){
				this.stateName = "未提交审批";
			}else if(state.equals("1")){
				this.stateName = "审批过程";
			}else if(state.equals("100")){
				this.stateName="审批完成";
			}
		}
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	
	public int getPurchaseNumber() {
		return purchaseNumber;
	}
	public void setPurchaseNumber(int purchaseNumber) {
		this.purchaseNumber = purchaseNumber;
	}
	
	public String getOfficesuppliesName() {
		return officesuppliesName;
	}
	public void setOfficesuppliesName(String officesuppliesName) {
		this.officesuppliesName = officesuppliesName;
	}
	public String getEntryUserId() {
		return entryUserId;
	}
	public void setEntryUserId(String entryUserId) {
		this.entryUserId = entryUserId;
	}
	public String getEntryUserName() {
		return entryUserName;
	}
	public void setEntryUserName(String entryUserName) {
		this.entryUserName = entryUserName;
	}
	public String getEntryRole() {
		return entryRole;
	}
	public void setEntryRole(String entryRole) {
		this.entryRole = entryRole;
	}
	public String getCheckRole() {
		return checkRole;
	}
	public void setCheckRole(String checkRole) {
		this.checkRole = checkRole;
	}
	public String getEntryDate() {
		return entryDate;
	}
	public void setEntryDate(String entryDate) {
		this.entryDate = entryDate;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public String getStateName() {
		return stateName;
	}
	public void setStateName(String stateName) {
		this.stateName = stateName;
	}
	public String getDeptId() {
		return deptId;
	}
	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}
	public String getCompanyId() {
		return companyId;
	}
	public void setCompanyId(String companyId) {
		this.companyId = companyId;
	}
	public String getOfficesuppliesId() {
		return officesuppliesId;
	}
	public void setOfficesuppliesId(String officesuppliesId) {
		this.officesuppliesId = officesuppliesId;
	}
	
}
